package cn.ad.server.domain.enumration;

import java.util.HashMap;
import java.util.Map;

/**
 * @author dongbin.yu
 * @from 2016-05-23
 * @since V1.0
 */
public enum ActionType {

    UNKNOWN(0,"点击跳转"),
    LINK_JUMP(1,"点击跳转"),
    APP_DOWNLOAD(2,"APP下载");

    private int value;

    private String name;

    public static final Map<Integer, ActionType> actionTypeMap;

    static {
    	actionTypeMap = new HashMap<>();
        for (ActionType actionType : values()) {
            actionTypeMap.put(actionType.getValue(), actionType);
        }
    }

    ActionType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

}
